import * as PIXI from 'pixi.js';

export default class BoundsUtil{

    public static fromPoints(points:Array<PIXI.Point>):PIXI.Bounds{
        var bounds = new PIXI.Bounds();
        points.forEach(item => {
            bounds.addPoint(item);
        })
        return bounds;
    }

}